package com.example.myapplication.ui.fragment

import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.example.myapplication.request.ProjectRequest
import kotlinx.coroutines.launch

/**
 *项目的viewModel
 *
 * @author : Kun
 * @date : 2021/6/16
 * @time : 10:53
 */
class ProjectViewModel : ViewModel() {
    /**
     * 项目相关的project
     */
    val projectRequest = ProjectRequest()

    /**
     * 请求项目分类
     */
    fun requestProjectTreeList() {
        viewModelScope.launch {
            projectRequest.requestProjectTreeList()
        }
    }
}